diff options
| author | Michael Williamson <mike@zwobble.org> | 2023-07-23 11:13:22 +0100 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2023-07-23 11:15:59 +0100 |
| commit | 179af029a24147ffc09f8b165b7d812b135d3f2d (patch) | |
| tree | a7e95ff18d542f1b99f3868514940fff7af1e795 /snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenStringAddTests]/[method:canGenerateCodeForStringAdd(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected | |
| parent | 8e633a6c6f9ed28a24afb4c0ed7219d034850fd4 (diff) | |
Fix tests for int-add and string-add Patio code gen
Diffstat (limited to 'snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenStringAddTests]/[method:canGenerateCodeForStringAdd(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected')
1 files changed, 23 insertions, 0 deletions
diff --git a/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenStringAddTests]/[method:canGenerateCodeForStringAdd(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected b/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenStringAddTests]/[method:canGenerateCodeForStringAdd(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected new file mode 100644 index 00000000..a0ddbbd8 --- /dev/null +++ b/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenStringAddTests]/[method:canGenerateCodeForStringAdd(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected @@ -0,0 +1,23 @@ +Compilation unit elements: + +( + function-decl + "shed__runtime__string_add" + params=(("left" int) ("right" int)) + return-type=int +) + +Locals: + * ("tmp__0" int) + +Args: + +Instructions: + +( + (call (local "tmp__0") "shed__runtime__string_add" ((local "b") (local "c"))) +) + +Temporary stack: + * tmp__0 + * a |
